<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<%@ taglib uri="/mytags" prefix="mytag" %>
 
<s:form id="edit_pubSoft_form" name="edit_pubSoft_form" method="post" action="pubSoft/update.do" enctype="multipart/form-data" onsubmit="return false;">
	<s:hidden id="id" name="id" />
	<table class="form-table">
		<tr>
			<th width="150">类别：</th>
			<td>
			<mytag:select id="category" title="请输入类别" name="category" sql="basedata" isSql="false" condition="12" dataType="Long" listKey="id" listValue="name" headerKey="" headerValue="请选择"/>
			</td>
		</tr>
		<tr>
			<th width="150">名称：</th>
			<td>
			<s:textfield key="name" title="请输入名称" cssClass="form-txtinput" id="name" maxlength="100" value="%{model.name}"/>
			</td>
		</tr>
		<tr>
			<th width="150">版本：</th>
			<td>
			<s:textfield key="ver" title="请输入版本" cssClass="form-txtinput" id="ver" maxlength="20" value="%{model.ver}"/>
			</td>
		</tr>
		<tr>
			<th width="150">备注：</th>
			<td>
			<textarea id="memo" name="memo" rows="28" style="width: 100%">${memo}</textarea>
			</td>
		</tr>
		<tr>
			<th width="150">已上传附件：</th>
			<td>
			<c:if test="${attach != null}">
		  		<c:forEach items="${attach}" var="item" varStatus="status">
					 <a onclick="Milan.ajaxutility.downloadFile('filedownload.do?fileAsName=${item.attachid}')" href="javascript:void(0)"> ${item.name} </a>
		  		</c:forEach>
		  	</c:if>
			</td>
		</tr>
		<tr>
			<th width="150">附件：</th>
			<td>
			<input name="attachFile" type="file" contenteditable="false" id="attachfile" size="40">&nbsp;附件最大不能超过20.00M
			</td>
		</tr>
	</table>
	<div class="win-btn-panel">
	    <a class="btn_short" class="btn_short" href="javascript:void(0)" 
			onclick="Ext.milan.pagejs.page_pubSoft.edit('edit_pubSoft_form')">确 定</a>
		<a class="btn_short" class="btn_short" href="javascript:void(0)" 
			onclick="Ext.milan.pagejs.page_pubSoft.closeWin(false);">取 消</a>
	</div>
</s:form>

